package io.github.wslxm.springbootplus2.manage.sys.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

import io.github.wslxm.springbootplus2.core.base.model.BaseEntity;

/**
 * 编号生成表 Entity
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>
 * @author ws
 * @email 1720696548@qq.com
 * @date 2023-12-06 11:08:13
 */
@Data
@ToString(callSuper = true)
@TableName("t_sys_number")
@ApiModel(value = "SysNumber 对象", description = "编号生成表")
public class SysNumber extends BaseEntity {

    private static final long serialVersionUID = -1732235472606584832L;

    @ApiModelProperty(notes = "层级 ")
    @TableField(value = "hierarchy")
    private Integer hierarchy;

    @ApiModelProperty(notes = "父级 ")
    @TableField(value = "pid")
    private String pid;

    @ApiModelProperty(notes = "标题")
    @TableField(value = "`name`")
    private String name;

    @ApiModelProperty(notes = "code")
    @TableField(value = "code")
    private String code;

    @ApiModelProperty(notes = "前缀")
    @TableField(value = "prefix")
    private String prefix;

    @ApiModelProperty(notes = "时间格式 ")
    @TableField(value = "time_format")
    private String timeFormat;

    @ApiModelProperty(notes = "初始自增值 ")
    @TableField(value = "init_increment")
    private Long initIncrement;

    @ApiModelProperty(notes = "当前自增值 ")
    @TableField(value = "increment")
    private Long increment;

    @ApiModelProperty(notes = "自增值位数 ")
    @TableField(value = "increment_len")
    private Integer incrementLen;

    @ApiModelProperty(notes = "最后生成key")
    @TableField(value = "last_key")
    private String lastKey;

    @ApiModelProperty(notes = "最后生成编号")
    @TableField(value = "last_no")
    private String lastNo;

    @ApiModelProperty(notes = "最后生成时间")
    @TableField(value = "last_time")
    private LocalDateTime lastTime;

    @ApiModelProperty(notes = "编号长度 ")
    @TableField(value = "len")
    private String len;

    @ApiModelProperty(notes = "备注")
    @TableField(value = "remarks")
    private String remarks;

}

